const Service = require('egg').Service;
class UserService extends Service {
  async find(uid) {
    return {
      code: 0,
      msg: '查询成功',
      data: {
        name: '张三',
        age: 18,
        id: uid,
      },
    };
  }
  async set(data) {
    return {
      code: 0,
      msg: '修改成功',
      data,
    };
  }
  async add(data) {
    return {
      code: 0,
      msg: '添加成功',
      data,
    };
  }
  async del(uid) {
    return {
      code: 0,
      msg: '删除成功',
      uid,
    };
  }
}
module.exports = UserService;
